package errcode

var (
	ErrorGetAccountFail = NewError(2001, "获取账户信息失败")
	ErrorLoginFail      = NewError(2002, "用户名或密码错误")
	ErrorUserExist      = NewError(2003, "用户名已存在")

	ErrorNewChainAccountFail  = NewError(3001, "创建链上账户失败")
	ErrorGetChainAccountsFail = NewError(3002, "获取链上账户失败")

	ErrorGetUserInfoFail = NewError(4001, "获取用户信息失败")
	ErrorSetUserInfoFail = NewError(4002, "更改用户信息失败")

	ErrorNewCourseFail    = NewError(5001, "创建课程失败")
	ErrorGetCourseFail    = NewError(5002, "获取课程失败")
	ErrorDeleteCourseFail = NewError(5003, "删除课程失败")

	ErrorUploadFileFail = NewError(6001, "上传文件失败")

	ErrorNewResourceFail    = NewError(7001, "创建资源失败")
	ErrorGetResourceFail    = NewError(7002, "获取资源失败")
	ErrorDeleteResourceFail = NewError(7003, "删除资源失败")
	ErrorStartSaleFail      = NewError(7004, "上架资源失败")
	ErrorEndSaleFail        = NewError(7005, "下架资源失败")
)
